<div class="index-main">
  <div class="header-top">
    <div class="sys-name">
      <!-- <i></i>
      <span class="name-pre">飞搏平安守护</span>
      <span class="name-next">安全管理系统</span> -->
    </div>
    <div class="icon-item fr"
      ng-class="{'active': vm.currentIndex == 0}">
      <div class="btn-group select user-btn" uib-dropdown auto-close="outsideClick"
        ng-click="vm.isActive()">
        <div class="user-header" uib-dropdown-toggle>
          <div class="user-pic"></div>
          <span class="filter-option fs-14">{{vm.userName}}</span>
          <span class="iconfont down-icon"
            ng-class="{'icon-fa-angle-up': vm.isDropDown, 'icon-xiala': !vm.isDropDown}"></span>
        </div>
        <div ng-class="{'drop': vm.isDropDown}"
          class="dropdown-menu drop-border-none" uib-dropdown-menu1 role="menu1" aria-labelledby="single-button">
          <div class="arrow-up"></div>
          <ul class="dropdown-menu-list">
            <li class="drop-href" ng-click="vm.changePwd()">
              <a>
                <span class="edit-pwd">修改密码</span>
                <i class="iconfont icon-mima fr edit-pwd-icon"></i>
              </a>
            </li>
            <li class="drop-href" ng-click="vm.logout()">
              <a>
                <span class="edit-pwd">退出</span>
                <i class="iconfont icon-tuichu2 fr edit-pwd-icon"></i>
              </a>
            </li>
          </ul>
        </div>
      </div>
    </div>
    <div class="icon-br fr"
      ng-show="currentIndex != 0 && currentIndex != 1"></div>
    <div class="icon-item fr"
      ng-class="{'active': currentIndex == 1}">
      <div class="btn-group select">
        <div class="user-header"
          ng-click="vm.goMessage()">
          <i class="iconfont icon-xiaoxi-copy"></i>
          <span class="fs-14">消息</span>
          <span class="icon-top-nav-count">{{vm.msgCount}}</span>
        </div>
      </div>
    </div>
    <div class="icon-br fr"
      ng-show="currentIndex != 1 && currentIndex != 2"></div>
    <div class="icon-item fr"
      ng-class="{'active': currentIndex == 2 }">
      <div class="btn-group select">
        <div class="user-header" ng-click="vm.downloadApp()">
          <i class="iconfont icon-shouji"></i>
          <span class="fs-14">APP下载</span>
        </div>
      </div>
    </div>
    <div class="icon-br fr"
      ng-show="(orgType == 1 || orgType == 2) && currentIndex != 2"></div>
    <div class="icon-item fr"
      ng-class="{'active': currentIndex == 3}">
      <div class="btn-group select">
        <div class="user-header"
          ng-show="orgType == 1 || orgType == 2"
          ui-sref="leaderHome">
          <i class="iconfont icon-pingtaiguanli icon-middle"></i>
          <span class="fs-14">管理平台</span>
        </div>
      </div>
    </div>
  </div>
  <div class="main-content-wrapper">
    <div class="menu-list">
      <side-nav></side-nav>
    </div>
    <div class="sub-view" ui-view></div>
  </div>
</div>

<!-- APP下载 -->
<script type="text/ng-template" id="codeDialog">
  <div class="code-img">
    <img ng-src="{{vm.getCodeImg()}}" alt="图片" />
  </div>
  <!-- 显示用户操作手册 -->
  <!-- <div class="avatar-attachment-upload-outer fs-12">
    <div class="file-list-outer">
      <div class="file-item">
        <span class="upload-file-name">平安工程APP用户手册.docx</span>
        <a class="pa-btn file-del-btn" target="_blank"
          ng-href="{{vm.getDocx()}}">
          下载
        </a>
      </div>
    </div>
  </div> -->
</script>

<!-- 修改密码 -->
<script type="text/ng-template" id="pwdDialog">
  <div class="pa-dialog">
    <div class="pa-dialog-header">
      <div class="title-txt">
        <span>修改密码</span>
      </div>
    </div>
    <div class="pa-dialog-content text-center document-dialog-file">
      <form name="editForm" novalidate>
        <!-- <div class="pa-form-control pa-width-100">
          <label class="text-right">登录名：</label>
          <input type="text" name="loginName" class="form-control-input"
            disabled ng-model="vm.userInfo.loginName">
        </div> -->
        <div class="pa-form-control pa-width-100">
          <label class="text-right"><b>*</b>原始密码：</label>
          <input type="password" name="originalPassword" class="form-control-input"
            ng-model="vm.userInfo.originalPassword" required>
        </div>
        <div class="pa-form-control pa-width-100">
          <label class="text-right"><b>*</b>新密码：</label>
          <input type="password" name="newPassWord" class="form-control-input"
            ng-model="vm.userInfo.newPassWord" required>
        </div>
        <div class="pa-form-control pa-width-100">
          <label class="text-right"><b>*</b>确认密码：</label>
          <input type="password" name="confirmPassWord" class="form-control-input"
            ng-model="vm.userInfo.confirmPassWord" required>
        </div>
      </form>
    </div>
    <div class="pa-dialog-footer text-center">
      <a class="pa-btn" ng-click="vm.submit(editForm)">
        <span>确定</span>
      </a>
      <a class="pa-btn reset-btn" ng-click="closeThisDialog()">
        <span>取消</span>
      </a>
    </div>
  </div>
</script>
